﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

public partial class admin_CreateDB : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string targetFile = HttpContext.Current.Server.MapPath("~/admin/CreateDB.sql");
        using (StreamReader sr = new StreamReader(targetFile))
        {
            txtQuery.Text = sr.ReadToEnd();
        }

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        clsDB.SetupDB(txtQuery.Text);
    }
}